﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MtwControl
{
    /// <summary>
    /// 鼠标动作消息，注释来自MSDN
    /// </summary>
    public struct MouseKword
    {
        /// <summary>
        /// The dx and dy parameters contain normalized absolute coordinates.
        /// If not set, those parameters contain relative data: the change in position since the last reported position. 
        /// This flag can be set, or not set, regardless of what kind of mouse or mouse-like device, if any, is connected to the system. 
        /// For further information about relative mouse motion, see the following Remarks section.
        /// 表明参数dX，dy含有规范化的绝对坐标。
        /// 如果不设置此位，参数含有相对数据：相对于上次位置的改动位置。
        /// 此标志可被设置，也可不设置，不管鼠标的类型或与系统相连的类似于鼠标的设备的类型如何。
        /// 要得到关于相对鼠标动作的信息，参见下面备注部分。 
        /// </summary>
        public static int MOUSEEVENTF_ABSOLUTE=0x8000;
        /// <summary>
        /// The left button is down.
        /// </summary>
        public static int MOUSEEVENTF_LEFTDOWN=0x0002;
        
        /// <summary>
        ///  The left button is up.
        /// </summary>
        public static int MOUSEEVENTF_LEFTUP=0x0004;
 
        /// <summary>
        /// The middle button is down.
        /// </summary>
        public static int MOUSEEVENTF_MIDDLEDOWN=0x0020;
 
        /// <summary>
        ///  The middle button is up.
        /// </summary>
        public static int  MOUSEEVENTF_MIDDLEUP=0x0040;

        /// <summary>
        ///  Movement occurred.
        /// </summary>
        public static int MOUSEEVENTF_MOVE=0x0001;
 
        /// <summary>
        /// The right button is down.
        /// </summary>
        public static int MOUSEEVENTF_RIGHTDOWN=0x0008; 
 
        /// <summary>
        /// The right button is up.
        /// </summary>
        public static int MOUSEEVENTF_RIGHTUP=0x0010;

        /// <summary>
        /// The wheel has been moved, if the mouse has a wheel. The amount of movement is specified in dwData
        /// </summary>
        public static int MOUSEEVENTF_WHEEL0x0800;

        /// <summary>
        ///  An X button was pressed.
        /// </summary>
        public static int MOUSEEVENTF_XDOWN=0x0080;

        /// <summary>
        ///  An X button was released.
        /// </summary>
        public static int MOUSEEVENTF_XUP=0x0100;

        /// <summary>
        /// The wheel button is rotated.
        /// </summary>
        public static int MOUSEEVENTF_WHEEL=0x0800;
 
        /// <summary>
        ///  The wheel button is tilted.
        /// </summary>
        public static int MOUSEEVENTF_HWHEEL=0x01000;

    }
}
